/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 18:13:27
 * @Description  : 用户前台页面路由
 */
import type { RouteRecordRaw } from 'vue-router'
const userRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'home',
    redirect: '/explorer',
    component: () => import('@/views/User/Layout/index.vue'),
    children: [
      {
        path: '/explorer',
        name: 'explorer',
        meta: {
          title: '用户主页',
          auth: false
        },
        component: () => import('@/views/User/Explorer/index.vue')
      },
      {
        path: '/examList',
        name: 'examList',
        meta: {
          title: '科目列表',
          auth: false
        },
        component: () => import('@/views/User/ExamList/index.vue')
      },
      {
        path: '/chapterList',
        name: 'chapterList',
        meta: {
          title: '章节列表',
          auth: false
        },
        component: () => import('@/views/User/ChapterList/index.vue')
      },
      
      {
        path: '/examDetail',
        name: 'examDetail',
        meta: {
          title: '科目详情',
          auth: false
        },
        component: () => import('@/views/User/ExamDetail/index.vue')
      },
      {
        path: '/paperDetail',
        name: 'paperDetail',
        meta: {
          title: '试卷详情',
          auth: false
        },
        component: () => import('@/views/User/PaperDetail/index.vue')
      },
      {
        path: '/paperResult',
        name: 'paperResult',
        meta: {
          title: '考试结果',
          auth: false
        },
        component: () => import('@/views/User/PaperResult/index.vue')
      },
      {
        path: '/user/settings/:page?',
        name: 'userSettings',
        meta: {
          title: '用户设置',
          auth: false
        },
        component: () => import('@/views/User/Setting/index.vue')
      }
    ]
  }
]

export default userRoutes
